#_*_ coding: utf-8 _*_
from django.shortcuts import render
from django.shortcuts import render_to_response
from django.template import RequestContext
from gb.models import Post, Answer
from gb.forms import frmPost, frmAnswer

# Create your views here.

def gb(request):
    frmPosts = frmPost()
    posts = Post.objects.order_by('post_date')
    return render_to_response('gb.html',{'page_title':u'Гаряча лінія', 'posts':posts, 'frmPosts':frmPosts, 'frmAns':frmAnswer},context_instance=RequestContext(request))